
#include "Animation.h"

namespace Engine {

namespace Kinetic {

Animation::Animation(Uint16 totalFrames, Uint16 fps) : 
	frame(0),
	fps(fps),
	totalTime(1000.0/fps * totalFrames),
	wrap(false),
	totalFrames(totalFrames),
	reverse(false)  {
}

Animation::~Animation() {
}

Animation & Animation::setFrame(Uint16 frame) {
	this->frame = frame;
	actualTime = frame * 1000.0/fps;
	return *this;
}


} // namespace Engine::Kinetic

} // namespace Engine
